package cn.xiaopengstack.api.service;

import java.io.IOException;

/**
 * @author jiangyangang
 */
public interface ILoginService {
    /**
     * 保存日志状态
     * @param ticket
     * @param openid
     */
    void saveLoginState(String ticket, String openid) throws IOException;

    /**
     * 创建微信二维码
     * @return
     */
    String createQrCodeTicket() throws IOException;

    /**
     * 检查是否登录
     * @param ticket
     * @return
     */
    String checkLogin(String ticket);
}
